<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Gestionnaire de comptes bancaires</title>
        <link href="#{request.contextPath}/css/default.css" rel="stylesheet" />
        <link href="#{request.contextPath}/css/skin.css" rel="stylesheet" />
    </h:head>
    <h:body>
        <div id="container">
            <div id="sidebar-wrapper">
            <h:form rendered="#{utilisateursMBean.isOnline()}">
                <ul id="nav">
                    <li><h:commandLink action="comptes?faces-redirect=true" value="Mes Comptes" /></li>
                    <li><h:commandLink action="ouvrirCompte?faces-redirect=true" value="Ouvrir un compte" /></li>
                    <li><h:commandLink action="retrait?faces-redirect=true" value="Effectuer un retrait" /></li>
                    <li><h:commandLink action="depot?faces-redirect=true" value="Faire un dépot" /></li>
                    <li><h:commandLink action="virement?faces-redirect=true" value="Effectuer un virement" /></li>
                    <li><h:commandLink action="#{utilisateursMBean.logout}" value="Deconnexion" /></li>
                </ul>
            </h:form>
            </div>
            <div id="content-wrapper">
                <h1>BankRoot</h1>
                <div id="page">
                     <ui:insert name="content"></ui:insert>
                </div>
            </div>
            <div class="clear"></div>
            <div id="footer">
                J.Romano &amp; R.Heens &copy;2011
            </div>
        </div>
    </h:body>
</html>

